<?php
/**
 * Created by Veyron
 * User: Vy
 * motto:现在的拼搏 为了更好的明天
 * Class: AdminUser
 * day:  2020/1/15
 * Time: 19:23
 */

namespace app\admin\validate;

use think\Validate;

class Image extends Validate
{
    protected $rule = [
        'file' => 'filesize:614400|fileExt:jpg,png,gif',
    ];
    protected $message = [
        'file.filesize'    => '大小不能超过600K',
        'file.fileExt'     => '只能是png,gif,png格式',
    ];

}
